<!-- 系列页 -->

<?php require_once '../base/header.php' ?>
<div class="uk-child-width-1-2@m" uk-grid>

    <?php
    require_once '../sql/connection.php';
    // 查询语句
    $sql_config = "select * from series";
    // 连接数据库，并查询
    $result_config = mysqli_query($GLOBALS['conn'], $sql_config);
    // 循环输出所有系列
    while ($row = mysqli_fetch_array($result_config)) {

        echo "<div>
                <div class='uk-card uk-card-default uk-card-hover'>
                    <div class='uk-card-media-top'>
                        <!-- 系列图片 -->
                        <img src='$row[4]' alt=''>
                    </div>
                    <div class='uk-card-body'>
                        <h3 class='uk-card-title'>
                            <a href='/page/public/list.php?id=$row[0]' >$row[1]</a>
                          </h3>
                        <pre>$row[3]</pre>
                    </div>
                </div>
            </div>";

    }


    ?>

</div>



<?php require_once '../base/footer.php' ?>
